package com.hotel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 关注公众号：MarkerHub
 * @since 2020-10-19
 */
@Data
@Entity//表面实体类
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Fee implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @Id
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 登记表的id
     */
    private Integer enterId;

    /**
     * 缴费还是退费
     */
    private String direct;

    /**
     * 客户号
     */
    private Integer coustomerId;

    /**
     * 客户号
     */
    private String coustomerName;

    /**
     * 金额
     */
    private Integer money;

    /**
     * 金额
     */
    private Integer allMoney;

    /**
     * 房间号
     */
    private Integer houseId;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    /**
     * 相关说明
     */
    private String description;

    /**
     * 操作员id
     */
    private Integer userId;

    /**
     * 支付方式
     */
    private String feeType;

    /**
     * z状态
     */
    private Integer state;
}
